package com.vichat.api.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2017-12-25 22:52:18.771
 */
@Entity
@Table(name = "api_busi_record",catalog = "edposdb")
public class ApiBusiRecord implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "api_busi_record";

    /** */
	public static final String ALIAS_RECORD_ID = "record_id";
    /** */
	public static final String ALIAS_TRANSACTION_ID = "transaction_id";
    /** */
	public static final String ALIAS_METHOD = "method";
    /** */
	public static final String ALIAS_PARTY_ID = "party_id";
    /** */
	public static final String ALIAS_UID = "uid";
    /** */
	public static final String ALIAS_CHANNEL_ID = "channel_id";
    /** */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "record_id", unique = true, nullable = false)
    public Long recordId;

 	@Column(name = "transaction_id")
    public String transactionId;

 	@Column(name = "method")
    public String method;

 	@Column(name = "party_id")
    public Long partyId;

 	@Column(name = "uid")
    public Long uid;

 	@Column(name = "channel_id")
    public Long channelId;

 	@Column(name = "state")
    public Long state;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;






	public Long getRecordId() {
		return this.recordId;
	}

	public void setRecordId(Long value) {
		this.recordId = value;
	}

	public String getTransactionId() {
		return this.transactionId;
	}

	public void setTransactionId(String value) {
		this.transactionId = value;
	}

	public String getMethod() {
		return this.method;
	}

	public void setMethod(String value) {
		this.method = value;
	}

	public Long getPartyId() {
		return this.partyId;
	}

	public void setPartyId(Long value) {
		this.partyId = value;
	}

	public Long getUid() {
		return this.uid;
	}

	public void setUid(Long value) {
		this.uid = value;
	}

	public Long getChannelId() {
		return this.channelId;
	}

	public void setChannelId(Long value) {
		this.channelId = value;
	}

	public Long getState() {
		return this.state;
	}

	public void setState(Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}



	public ApiBusiRecord() {
	}

	public ApiBusiRecord(boolean qryflag) {
	    if(qryflag){
	    		this.recordId = null;
				this.transactionId = null;
				this.method = null;
				this.partyId = null;
				this.uid = null;
				this.channelId = null;
				this.state = null;
				this.createTime = null;
			    }
	}


	public ApiBusiRecord(
	    Long inRecordId,
	    String inTransactionId,
	    String inMethod,
	    Long inPartyId,
	    Long inUid,
	    Long inChannelId,
	    Long inState,
		java.util.Date inCreateTime
	 ) {
		super();
				this.recordId = inRecordId;
				this.transactionId = inTransactionId;
				this.method = inMethod;
				this.partyId = inPartyId;
				this.uid = inUid;
				this.channelId = inChannelId;
				this.state = inState;
				this.createTime = inCreateTime;
			}





}

